# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         lower,upper,capwords方法和函数
# Description:
# Author:       asus
# Date:         2019/2/28
#-------------------------------------------------------------------------------


#将HELLO转化为小写
print("HELLO".lower())


#将hello转化为大写
print("hello".upper())

list = ["Python","Ruby","Java","KOTLIN"]
#在list中查找kotlin，由于大小写原因，没找到
if "Kotlin" in list:
    print("找到Kotlin了")
else:
    print("未找到Kotlin")
#迭代list中的每个元素，首先将元素值转换为小写，然后再比较
for lang in list:
    if "kotlin" == lang.lower():
        print("找到Kotlin了")
        break;


#将s中的英文单词首字母都转化为大写
s = "i not only like Python, but also like Kotlin"
import string
print(string.capwords(s))